{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MIN24\Desktop\PSRM Replication v2\Graphs_Log_Grapevine Effect.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}23 May 2020, 18:31:11

{com}. do "C:\Users\MIN24\Desktop\PSRM Replication v2\Figures_Stata.do"
{txt}
{com}. 
. use "C:\Users\MIN24\Desktop\PSRM Replication v2\PSRM_Dataset_Grapevine Effect.dta", clear
{txt}
{com}. 
. 
. *** FIGURE 1 ***
. *** use dataset "PSRM_Dataset_Grapevine Effect"
. 
. catplot d11_exp country if d11_dummy==0, stack vertical asyvars title("Control Group (n=1,939)") ytitle("Observations") name(graph_1)
{res}{txt}
{com}. catplot d11_exp country if d11_dummy==1, stack vertical asyvars title("Treatment Group (n=1,931)") ytitle("Observations") name(graph_2)
{res}{txt}
{com}. graph combine graph_1 graph_2
{res}{txt}
{com}. 
. graph save Graph "C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_1.gph"
{res}{txt}(file C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_1.gph saved)

{com}. 
. 
. *** FIGURE 2 ***
. *** use dataset "PSRM_Dataset_Grapevine Effect"
. 
. label define fff 0 "Control" 1 "Treatment"
{txt}
{com}. label values endorse1_dummyb fff
{txt}
{com}. 
. areg endorse1_expbd i.endorse1_dummyb##c.date_wave2 if wave==2, absorb(target_zone) cluster(target_zone)
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     3,685
{txt}{col 49}F({res}   3{txt},{res}     82{txt}){col 67}= {res}     39.50
{txt}{col 49}Prob > F{col 67}= {res}    0.0000
{txt}{col 49}R-squared{col 67}= {res}    0.2478
{txt}{col 49}Adj R-squared{col 67}= {res}    0.2300
{txt}{col 49}Root MSE{col 67}= {res}    0.4298

{txt}{ralign 94:(Std. Err. adjusted for {res:83} clusters in target_zone)}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}              endorse1_expbd{col 30}{c |}      Coef.{col 42}   Std. Err.{col 54}      t{col 62}   P>|t|{col 70}     [95% Con{col 83}f. Interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}endorse1_dummyb {c |}
{space 18}Treatment  {c |}{col 30}{res}{space 2} .2957021{col 42}{space 2} .0333133{col 53}{space 1}    8.88{col 62}{space 3}0.000{col 70}{space 4} .2294314{col 83}{space 3} .3619729
{txt}{space 18}date_wave2 {c |}{col 30}{res}{space 2} -.003706{col 42}{space 2} .0054111{col 53}{space 1}   -0.68{col 62}{space 3}0.495{col 70}{space 4}-.0144705{col 83}{space 3} .0070585
{txt}{space 28} {c |}
endorse1_dummyb#c.date_wave2 {c |}
{space 18}Treatment  {c |}{col 30}{res}{space 2}-.0060639{col 42}{space 2} .0029166{col 53}{space 1}   -2.08{col 62}{space 3}0.041{col 70}{space 4}-.0118658{col 83}{space 3}-.0002619
{txt}{space 28} {c |}
{space 23}_cons {c |}{col 30}{res}{space 2} .2840428{col 42}{space 2} .0309885{col 53}{space 1}    9.17{col 62}{space 3}0.000{col 70}{space 4} .2223968{col 83}{space 3} .3456889
{txt}{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                 target_zone {c |}   absorbed                                      (83 categories)

{com}. margins endorse1_dummyb, at(date_wave2==(0(5)40))
{res}
{txt}Adjusted predictions{col 49}Number of obs{col 67}= {res}     3,685
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}15}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}20}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}25}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}30}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}35}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}40}{p_end}
{p2colreset}{...}

{res}{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33} Delta-method
{col 21}{c |}     Margin{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
_at#endorse1_dummyb {c |}
{space 9}1#Control  {c |}{col 21}{res}{space 2} .2840428{col 33}{space 2} .0309885{col 44}{space 1}    9.17{col 53}{space 3}0.000{col 61}{space 4} .2223968{col 74}{space 3} .3456889
{txt}{space 7}1#Treatment  {c |}{col 21}{res}{space 2}  .579745{col 33}{space 2} .0312693{col 44}{space 1}   18.54{col 53}{space 3}0.000{col 61}{space 4} .5175404{col 74}{space 3} .6419495
{txt}{space 9}2#Control  {c |}{col 21}{res}{space 2} .2655128{col 33}{space 2} .0126399{col 44}{space 1}   21.01{col 53}{space 3}0.000{col 61}{space 4}  .240368{col 74}{space 3} .2906577
{txt}{space 7}2#Treatment  {c |}{col 21}{res}{space 2} .5308956{col 33}{space 2} .0131257{col 44}{space 1}   40.45{col 53}{space 3}0.000{col 61}{space 4} .5047844{col 74}{space 3} .5570067
{txt}{space 9}3#Control  {c |}{col 21}{res}{space 2} .2469828{col 33}{space 2} .0286927{col 44}{space 1}    8.61{col 53}{space 3}0.000{col 61}{space 4}  .189904{col 74}{space 3} .3040617
{txt}{space 7}3#Treatment  {c |}{col 21}{res}{space 2} .4820462{col 33}{space 2} .0347983{col 44}{space 1}   13.85{col 53}{space 3}0.000{col 61}{space 4} .4128213{col 74}{space 3}  .551271
{txt}{space 9}4#Control  {c |}{col 21}{res}{space 2} .2284528{col 33}{space 2} .0543212{col 44}{space 1}    4.21{col 53}{space 3}0.000{col 61}{space 4} .1203906{col 74}{space 3}  .336515
{txt}{space 7}4#Treatment  {c |}{col 21}{res}{space 2} .4331967{col 33}{space 2} .0639818{col 44}{space 1}    6.77{col 53}{space 3}0.000{col 61}{space 4} .3059165{col 74}{space 3}  .560477
{txt}{space 9}5#Control  {c |}{col 21}{res}{space 2} .2099228{col 33}{space 2} .0808847{col 44}{space 1}    2.60{col 53}{space 3}0.011{col 61}{space 4} .0490173{col 74}{space 3} .3708283
{txt}{space 7}5#Treatment  {c |}{col 21}{res}{space 2} .3843473{col 33}{space 2} .0939178{col 44}{space 1}    4.09{col 53}{space 3}0.000{col 61}{space 4} .1975149{col 74}{space 3} .5711798
{txt}{space 9}6#Control  {c |}{col 21}{res}{space 2} .1913928{col 33}{space 2} .1076936{col 44}{space 1}    1.78{col 53}{space 3}0.079{col 61}{space 4}-.0228441{col 74}{space 3} .4056296
{txt}{space 7}6#Treatment  {c |}{col 21}{res}{space 2} .3354979{col 33}{space 2} .1240627{col 44}{space 1}    2.70{col 53}{space 3}0.008{col 61}{space 4} .0886977{col 74}{space 3} .5822982
{txt}{space 9}7#Control  {c |}{col 21}{res}{space 2} .1728627{col 33}{space 2} .1346013{col 44}{space 1}    1.28{col 53}{space 3}0.203{col 61}{space 4} -.094902{col 74}{space 3} .4406275
{txt}{space 7}7#Treatment  {c |}{col 21}{res}{space 2} .2866485{col 33}{space 2} .1542941{col 44}{space 1}    1.86{col 53}{space 3}0.067{col 61}{space 4}-.0202916{col 74}{space 3} .5935887
{txt}{space 9}8#Control  {c |}{col 21}{res}{space 2} .1543327{col 33}{space 2} .1615584{col 44}{space 1}    0.96{col 53}{space 3}0.342{col 61}{space 4}-.1670584{col 74}{space 3} .4757238
{txt}{space 7}8#Treatment  {c |}{col 21}{res}{space 2} .2377991{col 33}{space 2} .1845695{col 44}{space 1}    1.29{col 53}{space 3}0.201{col 61}{space 4}-.1293684{col 74}{space 3} .6049667
{txt}{space 9}9#Control  {c |}{col 21}{res}{space 2} .1358027{col 33}{space 2} .1885438{col 44}{space 1}    0.72{col 53}{space 3}0.473{col 61}{space 4}-.2392709{col 74}{space 3} .5108763
{txt}{space 7}9#Treatment  {c |}{col 21}{res}{space 2} .1889497{col 33}{space 2} .2148703{col 44}{space 1}    0.88{col 53}{space 3}0.382{col 61}{space 4}-.2384958{col 74}{space 3} .6163953
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. marginsplot, title("") xtitle("Days since first interview in commune")

{text}{p 2 6 2}Variables that uniquely identify margins: date_wave2 endorse1_dummyb{p_end}
{res}{txt}
{com}. 
. graph save Graph "C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_2.gph"
{res}{txt}(file C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_2.gph saved)

{com}. 
. 
. *** FIGURE 3 ***
. *** use dataset "PSRM_Dataset_Grapevine Effect"
. 
. gen ethmarryd=.
{txt}(15,606 missing values generated)

{com}. replace ethmarryd=0 if ethmarry==1
{txt}(8,722 real changes made)

{com}. replace ethmarryd=1 if ethmarry==2
{txt}(999 real changes made)

{com}. replace ethmarryd=1 if ethmarry==3
{txt}(1,695 real changes made)

{com}. 
. areg endorse1_expd i.ethmarryd##c.date_wave1 if wave==1, absorb(target_zone) cluster(target_zone)
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     3,122
{txt}{col 49}F({res}   3{txt},{res}     34{txt}){col 67}= {res}      2.01
{txt}{col 49}Prob > F{col 67}= {res}    0.1304
{txt}{col 49}R-squared{col 67}= {res}    0.0697
{txt}{col 49}Adj R-squared{col 67}= {res}    0.0586
{txt}{col 49}Root MSE{col 67}= {res}    0.4401

{txt}{ralign 88:(Std. Err. adjusted for {res:35} clusters in target_zone)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}         endorse1_expd{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.ethmarryd {c |}{col 24}{res}{space 2}-.0724152{col 36}{space 2} .0338654{col 47}{space 1}   -2.14{col 56}{space 3}0.040{col 64}{space 4} -.141238{col 77}{space 3}-.0035923
{txt}{space 12}date_wave1 {c |}{col 24}{res}{space 2}-.0154264{col 36}{space 2} .0104138{col 47}{space 1}   -1.48{col 56}{space 3}0.148{col 64}{space 4}-.0365897{col 77}{space 3} .0057369
{txt}{space 22} {c |}
ethmarryd#c.date_wave1 {c |}
{space 20}1  {c |}{col 24}{res}{space 2} .0138399{col 36}{space 2} .0149202{col 47}{space 1}    0.93{col 56}{space 3}0.360{col 64}{space 4}-.0164816{col 77}{space 3} .0441613
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} .3379087{col 36}{space 2} .0236526{col 47}{space 1}   14.29{col 56}{space 3}0.000{col 64}{space 4} .2898409{col 77}{space 3} .3859766
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           target_zone {c |}   absorbed                                      (35 categories)

{com}. margins, dydx(ethmarryd) at(date_wave1==(0(5)30))
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     3,122
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.ethmarryd}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 9}15}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 9}20}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 9}25}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:date_wave1}{space 6}{txt:=} {space 9}30}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.ethmarryd {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.ethmarryd  {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}-.0724152{col 26}{space 2} .0338654{col 37}{space 1}   -2.14{col 46}{space 3}0.040{col 54}{space 4} -.141238{col 67}{space 3}-.0035923
{txt}{space 10}2  {c |}{col 14}{res}{space 2}-.0032159{col 26}{space 2} .0612406{col 37}{space 1}   -0.05{col 46}{space 3}0.958{col 54}{space 4}-.1276718{col 67}{space 3}   .12124
{txt}{space 10}3  {c |}{col 14}{res}{space 2} .0659834{col 26}{space 2} .1322292{col 37}{space 1}    0.50{col 46}{space 3}0.621{col 54}{space 4}-.2027386{col 67}{space 3} .3347055
{txt}{space 10}4  {c |}{col 14}{res}{space 2} .1351827{col 26}{space 2} .2057895{col 37}{space 1}    0.66{col 46}{space 3}0.516{col 54}{space 4}-.2830318{col 67}{space 3} .5533972
{txt}{space 10}5  {c |}{col 14}{res}{space 2}  .204382{col 26}{space 2} .2799011{col 37}{space 1}    0.73{col 46}{space 3}0.470{col 54}{space 4}-.3644455{col 67}{space 3} .7732096
{txt}{space 10}6  {c |}{col 14}{res}{space 2} .2735814{col 26}{space 2} .3542183{col 37}{space 1}    0.77{col 46}{space 3}0.445{col 54}{space 4}-.4462768{col 67}{space 3} .9934395
{txt}{space 10}7  {c |}{col 14}{res}{space 2} .3427807{col 26}{space 2}  .428634{col 37}{space 1}    0.80{col 46}{space 3}0.429{col 54}{space 4}-.5283084{col 67}{space 3}  1.21387
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, title("Survey 1") xtitle("Days since first interview in commune") name("g43")

{text}{p 2 6 2}Variables that uniquely identify margins: date_wave1{p_end}
{res}{txt}
{com}. 
. areg endorse1_expbd i.ethmarryd##c.date_wave2 if wave==2, absorb(target_zone) cluster(target_zone)
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     3,646
{txt}{col 49}F({res}   3{txt},{res}     82{txt}){col 67}= {res}      1.30
{txt}{col 49}Prob > F{col 67}= {res}    0.2812
{txt}{col 49}R-squared{col 67}= {res}    0.1790
{txt}{col 49}Adj R-squared{col 67}= {res}    0.1594
{txt}{col 49}Root MSE{col 67}= {res}    0.4495

{txt}{ralign 88:(Std. Err. adjusted for {res:83} clusters in target_zone)}
{hline 23}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 24}{c |}{col 36}    Robust
{col 1}        endorse1_expbd{col 24}{c |}      Coef.{col 36}   Std. Err.{col 48}      t{col 56}   P>|t|{col 64}     [95% Con{col 77}f. Interval]
{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.ethmarryd {c |}{col 24}{res}{space 2}-.0418755{col 36}{space 2}  .042233{col 47}{space 1}   -0.99{col 56}{space 3}0.324{col 64}{space 4}-.1258903{col 77}{space 3} .0421393
{txt}{space 12}date_wave2 {c |}{col 24}{res}{space 2}-.0061075{col 36}{space 2} .0058648{col 47}{space 1}   -1.04{col 56}{space 3}0.301{col 64}{space 4}-.0177744{col 77}{space 3} .0055595
{txt}{space 22} {c |}
ethmarryd#c.date_wave2 {c |}
{space 20}1  {c |}{col 24}{res}{space 2}-.0021627{col 36}{space 2}  .004465{col 47}{space 1}   -0.48{col 56}{space 3}0.629{col 64}{space 4} -.011045{col 77}{space 3} .0067197
{txt}{space 22} {c |}
{space 17}_cons {c |}{col 24}{res}{space 2} .4404704{col 36}{space 2} .0278412{col 47}{space 1}   15.82{col 56}{space 3}0.000{col 64}{space 4} .3850853{col 77}{space 3} .4958554
{txt}{hline 23}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           target_zone {c |}   absorbed                                      (83 categories)

{com}. margins, dydx(ethmarryd) at(date_wave2==(0(5)40))
{res}
{txt}Conditional marginal effects{col 49}Number of obs{col 67}= {res}     3,646
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.ethmarryd}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 10}5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}15}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}20}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}25}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}30}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}35}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:date_wave2}{space 6}{txt:=} {space 9}40}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}      dy/dx{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.ethmarryd {col 14}{txt}{c |}  (base outcome)
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.ethmarryd  {txt}{c |}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2}-.0418755{col 26}{space 2}  .042233{col 37}{space 1}   -0.99{col 46}{space 3}0.324{col 54}{space 4}-.1258903{col 67}{space 3} .0421393
{txt}{space 10}2  {c |}{col 14}{res}{space 2}-.0526889{col 26}{space 2} .0362807{col 37}{space 1}   -1.45{col 46}{space 3}0.150{col 54}{space 4}-.1248627{col 67}{space 3} .0194849
{txt}{space 10}3  {c |}{col 14}{res}{space 2}-.0635022{col 26}{space 2} .0429624{col 37}{space 1}   -1.48{col 46}{space 3}0.143{col 54}{space 4} -.148968{col 67}{space 3} .0219636
{txt}{space 10}4  {c |}{col 14}{res}{space 2}-.0743155{col 26}{space 2} .0580694{col 37}{space 1}   -1.28{col 46}{space 3}0.204{col 54}{space 4}-.1898341{col 67}{space 3}  .041203
{txt}{space 10}5  {c |}{col 14}{res}{space 2}-.0851289{col 26}{space 2}   .07678{col 37}{space 1}   -1.11{col 46}{space 3}0.271{col 54}{space 4}-.2378687{col 67}{space 3}  .067611
{txt}{space 10}6  {c |}{col 14}{res}{space 2}-.0959422{col 26}{space 2} .0970314{col 37}{space 1}   -0.99{col 46}{space 3}0.326{col 54}{space 4}-.2889686{col 67}{space 3} .0970841
{txt}{space 10}7  {c |}{col 14}{res}{space 2}-.1067556{col 26}{space 2} .1180332{col 37}{space 1}   -0.90{col 46}{space 3}0.368{col 54}{space 4}-.3415611{col 67}{space 3}   .12805
{txt}{space 10}8  {c |}{col 14}{res}{space 2}-.1175689{col 26}{space 2} .1394467{col 37}{space 1}   -0.84{col 46}{space 3}0.402{col 54}{space 4}-.3949728{col 67}{space 3}  .159835
{txt}{space 10}9  {c |}{col 14}{res}{space 2}-.1283823{col 26}{space 2} .1611079{col 37}{space 1}   -0.80{col 46}{space 3}0.428{col 54}{space 4}-.4488772{col 67}{space 3} .1921126
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 78}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. marginsplot, title("Survey 2") xtitle("Days since first interview in commune") name("g44")

{text}{p 2 6 2}Variables that uniquely identify margins: date_wave2{p_end}
{res}{txt}
{com}. 
. graph combine g43 g44
{res}{txt}
{com}. 
. graph save Graph "C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_3.gph"
{res}{txt}(file C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_3.gph saved)

{com}. 
. 
. use "C:\Users\MIN24\Desktop\PSRM Replication v2\Corstange raw data_Grapevine Effect.dta", clear
{txt}
{com}. 
. 
. *** FIGURE 4 ***
. *** use dataset "Corstange raw data_Grapevine Effect"
. 
. gen day=.
{txt}(2,481 missing values generated)

{com}. replace day=0 if q1=="6/29/2011 0:00"
{txt}(135 real changes made)

{com}. replace day=1 if q1=="6/30/2011 0:00"
{txt}(211 real changes made)

{com}. replace day=2 if q1=="7/1/2011 0:00"
{txt}(185 real changes made)

{com}. replace day=3 if q1=="7/2/2011 0:00"
{txt}(206 real changes made)

{com}. replace day=4 if q1=="7/3/2011 0:00"
{txt}(83 real changes made)

{com}. replace day=5 if q1=="7/4/2011 0:00"
{txt}(197 real changes made)

{com}. replace day=6 if q1=="7/5/2011 0:00"
{txt}(357 real changes made)

{com}. replace day=7 if q1=="7/6/2011 0:00"
{txt}(330 real changes made)

{com}. replace day=8 if q1=="7/7/2011 0:00"
{txt}(358 real changes made)

{com}. replace day=9 if q1=="7/8/2011 0:00"
{txt}(251 real changes made)

{com}. replace day=10 if q1=="7/9/2011 0:00"
{txt}(71 real changes made)

{com}. replace day=11 if q1=="7/10/2011 0:00"
{txt}(46 real changes made)

{com}. replace day=12 if q1=="7/11/2011 0:00"
{txt}(37 real changes made)

{com}. replace day=15 if q1=="7/14/2011 0:00"
{txt}(14 real changes made)

{com}. 
. bysort q2: sum day

{txt}{hline}
-> q2 = 1

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         28           2           0          2          2

{txt}{hline}
-> q2 = 2

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        252    2.559524    3.270115          0          9

{txt}{hline}
-> q2 = 3

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        248    5.608871    1.755339          0          8

{txt}{hline}
-> q2 = 4

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        207     2.63285    1.494483          1         15

{txt}{hline}
-> q2 = 5

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        351    7.390313    1.726704          1         15

{txt}{hline}
-> q2 = 6

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        408    4.470588    2.212122          0         15

{txt}{hline}
-> q2 = 7

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         33          12           0         12         12

{txt}{hline}
-> q2 = 8

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        351    3.905983    2.513903          0         15

{txt}{hline}
-> q2 = 9

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        161    7.658385    .8667871          3         11

{txt}{hline}
-> q2 = 10

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        104    7.019231    .9028624          6          9

{txt}{hline}
-> q2 = 13

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         29    8.137931    .3509312          8          9

{txt}{hline}
-> q2 = 15

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}        110    9.036364    .4477727          7         10

{txt}{hline}
-> q2 = 16

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         16      9.8125         .75          7         10

{txt}{hline}
-> q2 = 17

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         39    9.769231    .9857281          9         11

{txt}{hline}
-> q2 = 18

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         80      9.1625    .3712364          9         10

{txt}{hline}
-> q2 = 19

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         47    10.38298    .7387766          9         12

{txt}{hline}
-> q2 = 20

    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 9}day {c |}{res}         17          11           0         11         11

{txt}
{com}. 
. gen date2 = day
{txt}
{com}. replace date2 = date2-2 if q2==1
{txt}(28 real changes made)

{com}. replace date2 = date2-0 if q2==2
{txt}(0 real changes made)

{com}. replace date2 = date2-0 if q2==3
{txt}(0 real changes made)

{com}. replace date2 = date2-1 if q2==4
{txt}(207 real changes made)

{com}. replace date2 = date2-1 if q2==5
{txt}(351 real changes made)

{com}. replace date2 = date2-0 if q2==6
{txt}(0 real changes made)

{com}. replace date2 = date2-12 if q2==7
{txt}(33 real changes made)

{com}. replace date2 = date2-0 if q2==8
{txt}(0 real changes made)

{com}. replace date2 = date2-3 if q2==9
{txt}(161 real changes made)

{com}. replace date2 = date2-6 if q2==10
{txt}(104 real changes made)

{com}. replace date2 = date2-8 if q2==13
{txt}(29 real changes made)

{com}. replace date2 = date2-7 if q2==15
{txt}(110 real changes made)

{com}. replace date2 = date2-7 if q2==16
{txt}(16 real changes made)

{com}. replace date2 = date2-9 if q2==17
{txt}(39 real changes made)

{com}. replace date2 = date2-9 if q2==18
{txt}(80 real changes made)

{com}. replace date2 = date2-9 if q2==19
{txt}(47 real changes made)

{com}. replace date2 = date2-11 if q2==20
{txt}(17 real changes made)

{com}. 
. gen treatment=.
{txt}(2,481 missing values generated)

{com}. replace treatment=0 if q4==1
{txt}(381 real changes made)

{com}. replace treatment=1 if q4==2
{txt}(434 real changes made)

{com}. 
. replace q18=. if q18==-99
{txt}(129 real changes made, 129 to missing)

{com}. replace q18=. if q18==-98
{txt}(53 real changes made, 53 to missing)

{com}. replace q18=. if q18==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q21=. if q21==-99
{txt}(46 real changes made, 46 to missing)

{com}. replace q21=. if q21==-98
{txt}(43 real changes made, 43 to missing)

{com}. replace q21=. if q21==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q22=. if q22==-99
{txt}(73 real changes made, 73 to missing)

{com}. replace q22=. if q22==-98
{txt}(115 real changes made, 115 to missing)

{com}. replace q22=. if q22==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q24=. if q24==-99
{txt}(130 real changes made, 130 to missing)

{com}. replace q24=. if q24==-98
{txt}(43 real changes made, 43 to missing)

{com}. replace q24=. if q24==99
{txt}(381 real changes made, 381 to missing)

{com}. 
. egen support_hezbol = rowmean(q18 q21 q22 q24)
{txt}(399 missing values generated)

{com}. 
. replace q7=. if q7==-99
{txt}(15 real changes made, 15 to missing)

{com}. replace q7=. if q7==99
{txt}(381 real changes made, 381 to missing)

{com}. replace q8=. if q8==-99
{txt}(116 real changes made, 116 to missing)

{com}. replace q8=. if q8==-98
{txt}(38 real changes made, 38 to missing)

{com}. replace q8=. if q8==99
{txt}(381 real changes made, 381 to missing)

{com}. 
. gen shianeigh=0
{txt}
{com}. replace shianeigh=1 if q30==3
{txt}(434 real changes made)

{com}. replace shianeigh=. if q30==.
{txt}(0 real changes made)

{com}. tab shianeigh

  {txt}shianeigh {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      2,047       82.51       82.51
{txt}          1 {c |}{res}        434       17.49      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      2,481      100.00
{txt}
{com}. 
. label define muh 0 "Minority Shia" 1 "Majority Shia"
{txt}
{com}. label values shianeigh muh
{txt}
{com}. 
. areg support_hezbol c.date2 c.date2#shianeigh q7 q8, absorb(q2) cluster(q2)  // this might be best or we can use above and describe this in text
{res}
{txt}Linear regression, absorbing indicators{col 49}Number of obs{col 67}= {res}     1,922
{txt}{col 49}F({res}   4{txt},{res}     16{txt}){col 67}= {res}      1.88
{txt}{col 49}Prob > F{col 67}= {res}    0.1625
{txt}{col 49}R-squared{col 67}= {res}    0.2247
{txt}{col 49}Adj R-squared{col 67}= {res}    0.2165
{txt}{col 49}Root MSE{col 67}= {res}    1.3650

{txt}{ralign 83:(Std. Err. adjusted for {res:17} clusters in q2)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}   support_hezbol{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}date2 {c |}{col 19}{res}{space 2}-.0588128{col 31}{space 2} .0665835{col 42}{space 1}   -0.88{col 51}{space 3}0.390{col 59}{space 4}-.1999636{col 72}{space 3}  .082338
{txt}{space 17} {c |}
shianeigh#c.date2 {c |}
{space 3}Majority Shia  {c |}{col 19}{res}{space 2} .1983764{col 31}{space 2} .0805479{col 42}{space 1}    2.46{col 51}{space 3}0.026{col 59}{space 4} .0276224{col 72}{space 3} .3691303
{txt}{space 17} {c |}
{space 15}q7 {c |}{col 19}{res}{space 2}-.0300339{col 31}{space 2} .0386607{col 42}{space 1}   -0.78{col 51}{space 3}0.449{col 59}{space 4} -.111991{col 72}{space 3} .0519232
{txt}{space 15}q8 {c |}{col 19}{res}{space 2} .0359913{col 31}{space 2} .0398557{col 42}{space 1}    0.90{col 51}{space 3}0.380{col 59}{space 4} -.048499{col 72}{space 3} .1204815
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 3.095461{col 31}{space 2} .2454776{col 42}{space 1}   12.61{col 51}{space 3}0.000{col 59}{space 4} 2.575072{col 72}{space 3} 3.615851
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
               q2 {c |}   absorbed                                      (17 categories)

{com}. margins, at(date2=(1(3)15) shianeigh=(0 1))
{res}
{txt}Predictive margins{col 49}Number of obs{col 67}= {res}     1,922
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}4}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}7}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 10}7}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 9}10}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 9}13}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:date2}{space 11}{txt:=} {space 9}13}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:shianeigh}{space 7}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 3.082558{col 26}{space 2} .1446309{col 37}{space 1}   21.31{col 46}{space 3}0.000{col 54}{space 4} 2.775954{col 67}{space 3} 3.389161
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 3.280934{col 26}{space 2} .1976287{col 37}{space 1}   16.60{col 46}{space 3}0.000{col 54}{space 4}  2.86198{col 67}{space 3} 3.699888
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 2.906119{col 26}{space 2} .0705254{col 37}{space 1}   41.21{col 46}{space 3}0.000{col 54}{space 4} 2.756612{col 67}{space 3} 3.055626
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 3.699625{col 26}{space 2} .2540993{col 37}{space 1}   14.56{col 46}{space 3}0.000{col 54}{space 4} 3.160958{col 67}{space 3} 4.238291
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 2.729681{col 26}{space 2}  .262355{col 37}{space 1}   10.40{col 46}{space 3}0.000{col 54}{space 4} 2.173513{col 67}{space 3} 3.285849
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.118315{col 26}{space 2} .3878546{col 37}{space 1}   10.62{col 46}{space 3}0.000{col 54}{space 4}   3.2961{col 67}{space 3} 4.940531
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 2.553243{col 26}{space 2} .4609632{col 37}{space 1}    5.54{col 46}{space 3}0.000{col 54}{space 4} 1.576044{col 67}{space 3} 3.530441
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4.537006{col 26}{space 2} .5446572{col 37}{space 1}    8.33{col 46}{space 3}0.000{col 54}{space 4} 3.382385{col 67}{space 3} 5.691628
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 2.376804{col 26}{space 2}  .660261{col 37}{space 1}    3.60{col 46}{space 3}0.002{col 54}{space 4} .9771134{col 67}{space 3} 3.776495
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 4.955697{col 26}{space 2} .7093851{col 37}{space 1}    6.99{col 46}{space 3}0.000{col 54}{space 4} 3.451868{col 67}{space 3} 6.459526
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. marginsplot, title("") xtitle("Days since first interview in neighborhood")

{text}{p 2 6 2}Variables that uniquely identify margins: date2 shianeigh{p_end}
{res}{txt}
{com}. 
. graph save Graph "C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_4.gph"
{res}{txt}(file C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_4.gph saved)

{com}. 
. 
. use "C:\Users\MIN24\Desktop\PSRM Replication v2\PSRM_RawData_Grapevine Effect.dta", clear
{txt}
{com}. 
. 
. *** FIGURE A2 ***
. *** use dataset "PSRM_RawData_Grapevine Effect"
. 
. label define uuu 1 "Not at all" 2 "Somewhat" 3 "A lot" 88 "Don't know" 99 "Refused"
{txt}
{com}. gen d11_exp=b_d11traitement
{txt}(5,934 missing values generated)

{com}. replace d11_exp=b_d11controle if d11_exp==.
{txt}(1,963 real changes made)

{com}. label values d11_exp uuu
{txt}
{com}. gen d11_dummy=.
{txt}(7,888 missing values generated)

{com}. replace d11_dummy=0 if b_d11controle !=.
{txt}(1,963 real changes made)

{com}. replace d11_dummy=1 if b_d11traitement !=.
{txt}(1,954 real changes made)

{com}. label define xxx 0 "Control" 1 "Treatment"
{txt}
{com}. label values d11_dummy xxx
{txt}
{com}. 
. rename id2 country
{res}{txt}
{com}. label define yyy 1 "Chad" 2 "Niger" 3 "Burkina Faso"
{txt}
{com}. label values country yyy
{txt}
{com}. 
. catplot d11_exp country if d11_dummy==0, stack vertical asyvars title("Control Group (n=1,963)") ytitle("Observations") name(graph_X)
{res}{txt}
{com}. catplot d11_exp country if d11_dummy==1, stack vertical asyvars title("Treatment Group (n=1,954)") ytitle("Observations") name(graph_Y)
{res}{txt}
{com}. graph combine graph_X graph_Y
{res}{txt}
{com}. 
. graph save Graph "C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_A2.gph"
{res}{txt}(file C:\Users\MIN24\Desktop\PSRM Replication v2\Figure_A2.gph saved)

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\MIN24\Desktop\PSRM Replication v2\Graphs_Log_Grapevine Effect.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}23 May 2020, 18:31:48
{txt}{.-}
{smcl}
{txt}{sf}{ul off}